@blue: #194783;
@lightBlue: #316dbc;
@headerBlue: #193d84;
@headerHeight: 96px;

@font-face {font-family: 'iconfont';
  src: url('../fonts/iconfont.eot'); /* IE9*/
  src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('../fonts/iconfont.woff') format('woff'), /* chrome、firefox */
  url('../fonts/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
  url('../fonts/iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
  font-family:"iconfont" !important;
  font-size:16px;font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

.icon-user:before { content: "\e60d"; }
.icon-password:before { content: "\e60b"; }
.icon-check:before { content: "\e625"; }
.icon-check1:before { content: "\e6d3"; }
.iconfont.icon-* {
  margin-right: 5px;
}

.bg-image(@url) {
  background-image: url(@url);
  filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
  -moz-background-size:100% 100%;
  -webkit-background-size:100% 100%;
  background-size:100% 100%;
  -webkit-transition: bottom .3s ease-out 1.7s;
  -moz-transition: bottom .3s ease-out 1.7s;
  transition: bottom .3s ease-out 1.7s;
  background-size: cover;
  background-position: 50% 50%;
}
.center(@arg1,@arg2) {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: @arg1;
  -webkit-align-items: @arg1;
  -ms-flex-align: @arg1;
  align-items: @arg1;
  -webkit-box-pack: @arg1;
  -webkit-justify-content: @arg2;
  -ms-flex-pack: @arg1;
  justify-content: @arg2;
}
.flex-value(@num) {
  -webkit-box-flex: @num;
  -moz-box-flex: @num;
  -webkit-flex: @num;
  -ms-flex: @num;
  flex: @num; 
}

a {
  margin:0;
  padding:0;
  border:0;
  font-size:12px;
  vertical-align:baseline;
  background:transparent;
  color: #1d1d1d;
  text-decoration: none;
}
img {
  height: 100%;
  width: 100%;
}
input, select {
    vertical-align:middle;
}

.flex-direction(@arg1,@arg2) {
  -webkit-flex-direction:@arg1;
  flex-direction:@arg2;
  -webkit-box-orient: @arg2;
  -webkit-flex-flow: @arg2;
  flex-flow: @arg2;
}


main.Site-content {
  .bg-image('../images/landscape.jpg');
}

.Container {
  .flex-direction(vertical, column);
  width: 410px;
}

#center-logo {
  margin: 30px 0;
}

@media screen and (max-width: 768px)  {
  #footer {
   .logo {
     display: none;
   }
   .nav-container {
     max-width: 100% !important;
     .Grid{ width: 100% !important;};
   }
  }
}

#footer {
  .bg-image('../images/footer.jpg');
  .nav-container {
    align-self:center;
    div {
      &:last-of-type {
        border-right: none;
      }
      border-right: 1px solid #fff;
      ul {
        margin: 0;
        padding: 0;
        .flex-direction(vertical, column);
        li {
          list-style: none;
          a{
            color: #fff;
            display: block;
            text-decoration: none;
            text-align: center;
            font-size: 14px;
          }
          .flex-value(1);
       }
      }
    }
  }
}
#login-panel {
  .bg-image('../images/login.png');
  width: 410px;
  height: 400px;
  border-radius: 5px;
  color: #fff;
  margin-bottom: 60px;
  .name {
      color:#fff;
      font-size: 18px;
      font-weight: bold;
      display: block;
      padding: 25px 0 10px 0;
      width: 60px;
      margin-left: 50px;
    }
  .login-body {
    padding: 0 50px;
    .form-control {
      width: 100%;
      height: 40px;
      margin-top: 40px;
      border: 1px solid rgba(255, 255, 255, 0.8);
      border-radius: 5px;
      position: relative;
      &:last-of-type {
        width: 100%;
        border: none;
        input {
          border: 1px solid #fff;
          border-radius: 5px;
        }
      }
      .captcha {
        display: inline-block;
        width: 40%;
        height: 100%;
        float: right;
      }
      input {
        width: 100%;
        height: 100%;
        padding-left: 25px;
        background: rgba(255, 255, 255, 0.5);
        outline: none;
        border: 1px solid #fff;
        color: #fff;
        border:none;
      }
      i {
        position: absolute;
        top: 5px;
        left: 3px;
        font-size: 20px;
      }
    }
  }
  .panel-bottom {
    margin-top: 15px;
    span {
      margin-top: 10px;
      font-size: 12px;
      float: left;
    }
    input[type="submit"]{
      background-color: #27469c;
      border:none;
      width: 40%;
      padding:10px 0;
      border-radius: 5px;
      float: right;
      outline: none;
    }
  }
}

::-webkit-input-placeholder { /* WebKit browsers */
    color:    #fff;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color:    #fff;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    color:    #fff;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    color:    #fff;
}

#footer{
  padding:10px 60px;
  .center(center, space-around);
  .logo {
  margin-top: 9px;
  max-width: 320px;
  }
  .nav-container {
     max-width: 50%;
     .u-1of2 {
      a {
        text-align: left;
        padding-left: 25px;
      }
     }
     .Grid {
      width: 100%;
      .center(center,space-between);
      li {
        margin-bottom: 0.5em;
        &:last-of-type {
          margin-bottom: 0;
        }
      }
     }
  }
}

#login-form {
  .error {
    font-size: 12px;
    color: #dd2c00;
    font-family: "微软雅黑","Microsoft YaHei";
  }
  .success {
    font-size: 12px;
    color: #056f00;
    font-family: "微软雅黑","Microsoft YaHei";
  }
}